package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询
    Page findByPage(Integer pageNum, Integer pageSize, String name);
    ////新增菜品
    void save(Dish dish);
    //根据id查询
    Dish findById(Long id);
    //修改菜品
    void update(Dish dish);
    //删除菜品
    void delete(List<Long> ids);
    //修改售卖状态
    void updateStatus(Integer status, List<Long> ids);
    //根据category_Id查询
    //List<Dish> findList(Long categoryId);
    //根据category_Id查询
    List<Dish> findList(Long categoryId,String name);
}
